#ifndef CIRCLETRACK_H
#define CIRCLETRACK_H

class CCircleTrack{
public :
	CCircleTrack() ;

	CWnd *m_pWnd ;

	BOOL m_bDown ;
	BOOL m_bDirect ;

	CRect m_rectOld ;

	BOOL m_EXtended ;

	int m_nChoNum;
	int m_nProcess;
	//CRect m_rectDirect[12] ;
	CPoint m_OldPoint ;

	//void MakeDirect();
	CRect GetRect() ;
	int m_nLineDot;
	int m_nLindTick;
	int m_bSet ;
	CPoint m_def ;
	COLORREF m_color ;
	void SetColor(COLORREF color);
	void SetWnd(CWnd *pWnd);
	CPoint m_center;

	//CRect m_rectTrack;
	CRect m_rect;
	
	void SetMoveFlag(BOOL moveflag);
	BOOL m_MoveFlag;
	void SetRect(CRect rect);
	void Draw(CDC* pDC) ;
	void OnMouseMove(UINT nFlags, CPoint point);
	void OnLButtonDown(UINT nFlags, CPoint point);
	void OnLButtonUp(UINT nFlags, CPoint point);
	void SetProcess(int num);
	int  GetProcess();

	int PtInRect(CPoint point);
	void SetMouseCursor();
	int GetChoNum(){return m_nChoNum;}
	void MoveCenter(CPoint point);
	
	void MoveRadius(int radius) ;
};

#endif